void moveZeroes(vector<int> &nums) {
	int i, j, k = 0, temp;
	for (i = 0; i < nums.size(); i++) {
		if (nums[i] != 0) {
			nums[k++] = nums[i];
		}
	}
	while (k < nums.size())
		nums[k++] = 0;
}

void moveZeroes(vector<int> &nums) {
	int j = 0, temp;
	for (int i = 0; i < nums.size(); i++) {
		if (nums[i] != 0) {
			temp = nums[i];
			nums[i] = nums[j];
			nums[j] = temp;
			j++;
		}
	}
}